{{About|the placeable block|the spawn egg used to spawn the [[Ender Dragon]]|Spawn Egg}}
{{Block
| image2 = Dragon Egg BE.png
| invimage2 = ----
| invimage3 = Dragon Egg BE
| transparent = Yes
| light = Yes (1)
| tool = none
| renewable = No
| stackable = Yes (64)
| flammable = No
| lavasusceptible = No
| rarity = Epic
}}

The '''dragon egg''' is a decorative block or a "trophy item", and is the rarest item obtainable in the game, as it generates only once (or twice {{in|Bedrock}}<ref name=TwoEggs>{{bug|MCPE-51345}}</ref>).

== Obtaining ==
{{IN|Java}}, the dragon egg is available in the Creative inventory. Across both Java and Bedrock editions, it can be obtained with {{control|pick block}} or the {{cmd|give}} command, or placed in the world with commands such as {{cmd|setblock}} and {{cmd|fill}}.

=== Post-generation ===
{{IN|Java}}, a single dragon egg is generated on top of the [[exit portal]] when the first [[ender dragon]] is defeated. {{IN|Bedrock}}, two dragon eggs generate on top of the exit portal; one generates when the first ender dragon is defeated, while the other generates when the second ender dragon is defeated.<ref name=TwoEggs/> 

=== Breaking ===
The dragon egg usually cannot be mined directly, as trying to do so causes it to [[teleportation|teleport]] within a 31×15×31 volume centered on the egg, with locations toward the center more likely. If all air blocks in that area are filled so there is nowhere for the egg to teleport to, or if it fails to find an air block after 1,000 attempts at teleporting, it can be mined. The dragon egg is a gravity-affected block, and drops as an [[item (entity)|item]] when pushed by a [[piston]] or when it falls onto a block [[Solid block#Height|less than a full block tall]], such as a [[torch]] or a bottom [[slab]].

When destroyed by an [[explosion]], the block ''always'' drops as an item.

The dragon egg is not immune to destruction by the ender dragon, despite being produced by it.<ref>{{bug|MC-165218}}</ref>

{{breaking row|horizontal=1|Dragon Egg}}

== Usage ==
{{see also|Falling Block#Behavior}}
[[File:Dragon Egg Heatmap.png|right|thumb|250px|Heatmap of where a dragon egg lands after trying to mine it.]]
[[File:Particles of a dragon egg.png|thumb|Particles of a dragon egg.]]

The dragon egg, if there is no block below it, falls until it lands on the next available block. When it is being affected by gravity and falling, it exhibits a smooth falling animation.

It does not [[suffocate]] mobs or players when it falls and covers them, nor does it crush mobs or players like [[anvil]]s and [[stalactite]]s do.

The dragon egg can be placed on a non-solid block without falling.

Like other falling blocks, when the dragon egg is floating, it has black particles falling from it.

=== Light source ===
The dragon egg emits a [[light level]] of 1.

=== Teleporting ===
To cause the egg to teleport, press {{control|attack}} while in [[Survival]] or [[Adventure]] mode (press {{control|use}} in [[Creative]]). It teleports to an air block nearby (up to seven blocks vertically and fifteen blocks horizontally), creating the same particles as an [[enderman]]. It may teleport into the air and subsequently fall to the ground since it forcefully obeys gravity.

If all available air blocks are filled, it is possible to break the block.

Dragon egg teleportation lacks teleportation sounds.<ref>{{bug|MC-166291}}</ref>

=== The Void ===
In the case that egg teleportation finds an invalid location such as a negative y value, it makes an additional attempt to find a valid location, centered on the invalid location rather than the original position.

== Sounds ==
{{Sound table/Block/Stone}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showforms=y
|generatetranslationkeys=y
|displayname=Dragon Egg
|spritetype=block
|nameid=dragon_egg
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Dragon Egg
|spritetype=block
|nameid=dragon_egg
|id=122
|foot=1}}

=== Falling block entity ===
{{Entity
| title = Falling Dragon Egg
| image = Dragon Egg.png
|image2=Dragon Egg BE.png
| size = Height: 0.98 Blocks<br>Width: 0.98 Blocks
}}
{{main|Falling Block}}
{{:Falling Block/ED}}

== Advancements ==
{{load advancements|The Next Generation}}

== History ==
{{History|java}}
{{History||October 26, 2011|link={{tweet|notch|129448393880780800}}|The dragon egg is first mentioned by [[Notch]], supposedly before there was the feature freeze,<ref>{{Tweet|notch|129448393880780800| There isn't a lot of interesting minecraft news these days because of the feature freeze, so I will just say one thing: egg.|October 27, 2011}}</ref><ref>{{Tweet|notch|129450909775314944| I was talking about ender dragon eggs.|October 27, 2011}}</ref> though it seems to have been worked on during it.}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 6|[[File:Dragon Egg JE1.png|32px]] Added the dragon egg.
|Dragon eggs cannot be obtained within the [[Creative inventory]].}}
{{History||1.3.1|snap=12w17a|[[Pick Block]] no longer works on the dragon egg.}}
{{History|||snap=12w18a|As a result of singleplayer being changed to an internal server, the dragon egg no longer produces particles when teleporting, alongside [[Java Edition 1.3.1/List of broken features|many other features this version broke]].}}
{{History|||snap=12w30c|[[File:Dragon Egg (falling) JE1.png|32px]] The dragon egg renders as [[lava]] with the cube model when falling.}}
{{History|||snap=12w30e|[[File:Dragon Egg JE1.png|32px]] The dragon egg uses its own model again when falling.}}
{{History||1.4.4|snap=1.4.3|[[File:Dragon Egg (falling) JE2.png|32px]] The dragon egg uses cube model when falling.<ref>{{bug|MC-1688}}</ref>
|The dragon egg once again produces particles; however, it does not actually point to the location it teleports to as it did previously.<ref>{{bug|MC-2157}}</ref>}}
{{History||1.4.6|[[File:Dragon Egg JE1.png|32px]] The dragon egg uses its own model when falling, once again.}}
{{History||1.8|snap=14w07a|[[File:Dragon Egg JE2.png|32px]] The dragon egg is among the earliest of many blocks to be converted to custom block [[model]]s, deprecating hardcoded block rendering. The conversion, however, is flawed, as the third "tier" from the top is the same size as the second, resulting in an incorrectly shaped model as well as inconsistently sized pixels. This error continues into the present day.<ref>{{bug|MC-120417}}</ref>}}
{{History||1.9|snap=15w49a|Pick Block now works on the dragon egg again.<ref>{{bug|MC-76975}}</ref>}}
{{History||1.12|snap=17w17a|The advancement [[The Next Generation]] has been added, which is unlocked from obtaining a dragon egg.}}
{{History||1.13|snap=17w47a|Prior to [[1.13/Flattening|''The Flattening'']], this block's numeral ID was 122.}}
{{History||1.17|snap=21w11a|[[File:Dragon Egg JE3.png|32px]] Changed lighting.}}
{{History||1.18|snap=21w39a|[[File:Dragon Egg JE4.png|32px]] The default [[brightness]] has been changed from "Moody" to 50.}}
{{History||1.19.3|snap=22w43a|The dragon egg is now available in the Creative inventory.<ref>{{bug|MC-55718|||Fixed}}</ref>}}

{{History|pocket}}
{{History||1.0.0|snap=alpha 0.17.0.1|[[File:Dragon Egg BE1.png|32px]] Added the dragon egg.
|Dragon eggs are available in the Creative inventory.{{verify|Is this the correct update snapshot it is in the Creative menu?}}}}
{{History|bedrock}}
{{History||?|Two dragon eggs now spawn, only when the first and second dragons are defeated.<ref name=TwoEggs/>}}
{{History||1.16.200|snap=beta 1.16.200.56|The dragon egg now always drops as an item when it's destroyed by an explosion.<ref>{{Bug|MCPE-52632}}</ref>}}

{{History|console}}
{{History||xbox=TU9|xbone=CU1|ps=1.00|wiiu=Patch 1|switch=1.0.1|[[File:Dragon Egg JE1.png|32px]] Added the dragon egg.
|Dragon eggs cannot be obtained within the Creative inventory.}}

{{History|new 3ds}}
{{History||1.7.10|[[File:Dragon Egg BE1.png|32px]] Added the dragon egg.
|Dragon eggs are available in the Creative inventory.}}
{{history|foot}}

== Issues ==
{{issue list}}

== Trivia ==
* The writer of the ''Minecraft'' comic ''WonderCraft'', Samcube, was requested by [[Mojang]] to create official ''Minecraft'' posters. In a part of these works, one can see an area with an ender dragon and a [[chicken]] on top of a [[huge mushroom]]. In the same scene, the dragon egg is visible near the chicken.
* If the dragon egg teleports and falls into the portal, it spawns in the Overworld at the world spawn.

== Gallery ==
<gallery>
Ender egg.jpg|Samcube's [[Minecraft]] poster showing the dragon egg.
Egg teleporting distance.png|The teleporting distance of a dragon egg.
Dragon egg piston.png|An example of using a [[piston]] and a [[lever]] to obtain the dragon egg.
Dragon Egg on Snow.png|A dragon egg on a [[snow layer]].
</gallery>

== See also ==
* {{EnvLink|The End}}
* {{EntityLink|Ender Dragon}}

== References ==
{{reflist}}

{{blocks|vegetation}}
{{Entities}}

[[Category:End blocks]]
[[Category:Animal blocks]]
[[Category:Generated structure blocks]]
[[Category:Light sources]]

[[de:Drachenei]]
[[es:Huevo de dragón]]
[[fr:Œuf de dragon]]
[[ja:ドラゴンの卵]]
[[nl:Drakenei]]
[[pl:Jajo Smoka]]
[[pt:Ovo de dragão]]
[[ru:Яйцо дракона]]
[[tr:Ejderha Yumurtası]]
[[uk:Яйце дракона]]
[[zh:龙蛋]]
